<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
	        + request.getServerName() + ":" + request.getServerPort()
	        + path + "/";
	pageContext.setAttribute("baseUrl", basePath);
%>
<!DOCTYPE>
<html>
<head>
<meta charset="utf-8">
<title><s:property value="application.name" /></title>
<meta name="description" content="">
<meta name="author" content="">
<link href="css/common.css" rel="stylesheet" type="text/css" />
<link href="css/page.css" rel="stylesheet" type="text/css" />
</head>
<body>
	<div class="container">
		<div class="header content">
			<h1 class="lead">Web Project</h1>
		</div>
		<div class="app_container content">
			<div class="basic_info container">
				<div class="sorter">
					<img src="img/arrow.png">
				</div>
				<div class="time">软件下载</div>
				<div class="download_box">
					<div class="image">
						<img src=".<s:property value="application.icon"/>" width="80"
							height="80" />
					</div>
					<div class="intro">
						<h4>&radic;直接下载</h4>
						<p>将手机安装软件下载到电脑，再通过数据线或蓝牙传输到您的手机上。</p>
					</div>
					<div style="margin-top:10px;">
					   <button id="download_app" class="button login_btn" style="font-size:14px">下载软件</button>
					</div>
				</div>
				<div class="download_box">
					<div class="image">
						<img src=".<s:property value="application.twoDimentCode"/>"
							width="80" height="80" />
					</div>
					<div class="intro">
						<h4>&radic;二维码下载</h4>
						<p>如果你的手机有安装二维码扫描软件，可通过摄像头扫描上图的二维码下载。</p>
					</div>
					<div class="app_link">
						<input id="app-download-url" type="text" readonly="true"
							value="<s:property value="#attr.baseUrl"/>application_dowloadApp?id=<s:property value="application.id"/>"
							class="link_input container" />
					</div>
					<div style="margin-top:10px;">
					   <button id="copy_qm" class="button reset_btn" style="font-size:14px">复制链接</button>
					</div>
				</div>
			</div>
			<div class="app_des">
				<div class="sorter">
					<img src="img/arrow.png">
				</div>
				<div class="time">软件简介</div>
				<div class="des_content">
					<s:property value="application.description" />
				</div>
			</div>
		</div>
		<div class="divider_line content">&nbsp;</div>

		<div class="app_screen_shot content">
			<div class="sorter">
				<img src="img/arrow.png" />
			</div>
			<div class="time">软件截图</div>
			<s:iterator value="application.screenList" id="screenshot"
				status="status">
				<s:if test="#status.getCount() == 1">
					<div class="screen_shot_contaienr">
				</s:if>
				<s:elseif test="(#status.getCount()-1) % 3 == 0">
		</div>
		<div class="screen_shot_contaienr">
			</s:elseif>
			<div class="screen_shot">
				<img src=".<s:property value="screenshot"/>" />
			</div>
			</s:iterator>
		</div>

	<div class="note_container content">
		<div class="sorter">
			<img src="img/arrow.png" />
		</div>
		<div class="time">留言墙</div>
		<div class="note_box container">
			<s:iterator value="commentList" id="comment">
				<div class="note">
					<div class="note_content">
						<s:property value="#comment.containt" />
					</div>
					<div class="note_info">
						发言时间：
						<s:date format="yyyy-MM-dd hh:mm:ss" name="#comment.createdTime" />
					</div>
				</div>
			</s:iterator>
			<input id="application-id"
				value="<s:property value="application.id"/>" style="display: none" />
			<textarea id="comment-containt" class="input_note" title="留言框"
				tabindex="1">
               </textarea>
			<button id="comment-add" onclick="addComment()" class="button reset_btn">评论</button>
		</div>
	</div>
	<div class="bottom_container content">
		Copyright@2012-2013<br>
	</div>
	</div>
	<script src="js/jquery.min.js"></script>
	<script src="js/comment.js"></script>
	<script src="js/ZeroClipboard.min.js"></script>
	<script src="js/software.js"></script>
	
</body>
</html>